﻿using System.Collections;
using System.Security.Permissions;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

namespace SiteFox.WebParts.Login
{
    [AspNetHostingPermission(SecurityAction.Demand,
      Level = AspNetHostingPermissionLevel.Minimal)]
    [AspNetHostingPermission(SecurityAction.InheritanceDemand,
      Level = AspNetHostingPermissionLevel.Minimal)]
    
    public class LoginStatusWP : WebPart
    {
        LoginStatus _LoginStatus = new LoginStatus();

        #region PublicProperies
        private string _CssClass = "";
        [Personalizable(true)]
        [WebBrowsable(true)]
        [WebDescription("")]
        [WebDisplayName("CssClass")]
        public new string CssClass
        {
            get { return _CssClass; }
            set { _CssClass = value; }
        }


        #endregion

        protected override void CreateChildControls()
        {
            Controls.Clear();
            _LoginStatus = new LoginStatus();
            _LoginStatus.CssClass = _CssClass;
            Controls.Add(_LoginStatus);
        }
    }
}
